/*
 * Created by: 	Zhaoningbo
 * at:			2011-8-17 - 上午10:14:05
 * blog:		(http://zhaoningbo.iteye.com/)
 */
package com.gc.test;

import java.io.Serializable;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class MyTestTimeBook implements Serializable {

    private static final long serialVersionUID = 3060948600904358306L;

    public static void main(String[] args) {
        ApplicationContext applicationContext = new FileSystemXmlApplicationContext(
                "classpath:config.xml");

        com.gc.impl.TimeBook timeBookProxy = (com.gc.impl.TimeBook) applicationContext
                .getBean("timeBook");

        timeBookProxy.audit("张三");

        com.gc.impl.autoproxy.TimeBook timeBookAutoproxy = (com.gc.impl.autoproxy.TimeBook) applicationContext
                .getBean("timeBookImpl");
        timeBookAutoproxy.doAuditing("老王");
    }

}
